<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/WEB-INF/common/hplus-css.jsp"%>
</head>

<div class="row">
    <div class="ibox float-e-margins">
        <div class="col-sm-12">
            <div class="ibox-title">
            <h2>个人资料</h2>
            </div>
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal" id="myform" method="POST" >
                   <%--  <c:forEach items="${user}" var="us"> --%>
                        <div class="col-sm-5">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">姓   &nbsp;&nbsp;&nbsp;&nbsp;名：</label>

                                <div class="col-sm-8">
                                    <input style="background-color: white; border: 0px" type="text" readonly="readonly" name="name" value="${user.name }" class="form-control">
                                </div>
                            </div>
                        </div>
                        
                       
                        <div class="col-sm-5">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">性   &nbsp;&nbsp;&nbsp;&nbsp;别：</label>
                               &nbsp;&nbsp;&nbsp;&nbsp;
                               
                               <input type="radio" disabled="disabled" name="sex"value="1"${user.gender == 1?"checked = 'true'":""} >  &nbsp;男
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                 <input type="radio" disabled="disabled" name="sex"value="0"${user.gender == 0?"checked = 'true'":""} > &nbsp;女
                            </div>
                        </div>

                        <div class="col-sm-2 pull-right" style="margin-left: 0px; margin-top: 30px">
                            <div style="border: 1px solid black; height: 150px; width: 150px; margin-left: -40px;">
                                <img id="headImg" alt="头像图片" title="点头像图片" src="${path}/assets/hplus/img/headImg.jpg"" width="148px" height="150px">
                                <!-- <button>点击上传</button> -->
                            </div>
                            
                        </div>


                        <div class="col-sm-5">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">身份证号：</label>

                                <div class="col-sm-8">
                                    <input style="background-color: white; width:200px; border: 0px" type="text" name="idNumber" value="${user.idcard}" readonly="readonly" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5" style="margin: -43px 0 -20px 0px;">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">联系电话：</label>
                                <div class="col-sm-8">
                                    <input  style="background-color: white; border: 0px" class="form-control" value="${user.mobile}" readonly="readonly" name="birthTime" id="time">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">联系地址：</label>

                                <div class="col-sm-8">
                                    <input style="background-color: white; border: 0px" type="text" name="education" value="${user.address}" readonly="readonly" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">账   &nbsp;&nbsp;&nbsp;&nbsp;号：</label>

                                <div class="col-sm-8">
                                    <input style="background-color:  white;width:200px; border: 0px" type="text" value="${user.userCode}" readonly="readonly" class="form-control">
                                </div>
                            </div>
                        </div>
                       
                       
                      
                       
                      
                        <div>

                            
                            

                        </div>

                     <%--   </c:forEach> --%>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>


<%@include file="/WEB-INF/common/hplus-js.jsp"%>
    <script src="${path}/assets/hplus/js/demo/form-validate-demo.js"></script>


<script type="text/javascript">

//头像显示
$.ajax({
    type: "POST",
    url: "${path}/user/ifheadImg",
    data: {
    	
    },
    dataType: "json",
    success: function (json) {
      
        	if(json.ifheadImg==1){
        		$("#headImg").attr("src","${path}/user/headImg")
        	}else{
        		
        		$("#headImg").attr("src","${path}/assets/hplus/img/headImg.jpg")
        		
        	}
    }
});


</script>


</html>
